package main

import (
	"net"
	"os"
)

func main() {
	lsr, _ := net.Listen("tcp", ":8888")
	defer lsr.Close()

	conn, _ := lsr.Accept()

	buf := make([]byte, 1024)
	for {
		n, _ := conn.Read(buf)
		os.Stdout.Write(buf[:n])
	}
}
